package com.liugui.basicsgrammar;

public class ArithmeticOperation{

    public static void main(String[] arges){
        int a = 5,b = 3,c = 3,d =3;
        System.out.println("a + b = " + (a + b));//8
        System.out.println("a - b = " + (a - b));//2
        System.out.println("a * b = " + (a * b));//15
        System.out.println("a / b = " + (a / b));//1
        System.out.println("a % b = " + (a % b));//2
        System.out.println("a++ = " + (a++));//5   后加
        System.out.println("++a = " + (++a));//6+1 先加
        System.out.println("b-- = " + (b--));//3   
        System.out.println("--b = " + (--b));//2-1
        System.out.println("c++ = " + (c++));//3
        System.out.println("++d = " + (++d));//3+1
    }

}